<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v4.0.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Keywords" content="ECSHOP演示站">
<meta name="Description" content="ECSHOP演示站">
<title>ECSHOP演示站 - Powered by ECShop</title>
<base href="__ROOT__/home/">
<link rel="shortcut icon" href="http://localhost/dayi/ecshopceshi/ecshop/favicon.ico">
<link rel="icon" href="http://localhost/dayi/ecshopceshi/ecshop/animated_favicon.gif" type="image/gif">
<link href="css/style.css" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" title="RSS|ECSHOP演示站 - Powered by ECShop" href="http://localhost/dayi/ecshopceshi/ecshop/feed.php">
<link rel="stylesheet" type="text/css" href="css/swiper.css">
<script language="javascript" src="js/swiper.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="js/common.js"></script><script type="text/javascript" src="js/index.js"></script></head>
<body>
<script type="text/javascript">
var process_request = "正在处理您的请求...";
</script>
<div class="top-bar">
  <div class="fd_top fd_top1">
    <div class="bar-left">
          <div class="top_menu1"> <script type="text/javascript" src="js/transport.js"></script><script type="text/javascript" src="js/utils.js"></script> 
          <font id="ECS_MEMBERZONE"><div id="append_parent"></div>
              欢迎光临本店<a href="{:url('login/login')}">
              <?php 
                 use think\Session;
                 $user_info = session::get("user_info");
                 if(!empty($user_info)){
                    echo $user_info['user_name'];
                 }else{
                    echo "登录";
                 }
                           
               ?><strong></strong></a>
              &nbsp;|&nbsp;&nbsp;
              <a href="{:url('login/reg')}">免费注册</a> 
          </font> </div>
    </div>
    <div class="bar-cart">
      <div class="fl cart-yh">
        <a href="{:url('user/welcome')}" class="">用户中心</a>
      </div>
             <div class="cart" id="ECS_CARTINFO"> <a href="{:url('shopcar/car')}" title="查看购物车">购物车</a> </div>
    </div>
  </div>
</div>

</div>
<div class="clear0 "></div>

<div class="block box">
 <div id="ur_here">
  <div class="path"><div>当前位置: <a href="{:url('index/index')}">首页</a> <code>&gt;</code> 用户中心</div></div> </div>
</div>

<div class="blank"></div>
<div class="block clearfix userpage">
  
  <div class="AreaL">
    <div class="box">
     <div class="box_1">
      <div class="userCenterBox">
        <div class="userMenu">
<a href="{:url('user/welcome')}"><img src="images/u1.gif"> 欢迎页</a>
<a href="{:url('user/userinfo')}"><img src="images/u2.gif"> 用户信息</a>
<a href="{:url('user/dingdan')}" class="curs"><img src="images/u3.gif"> 我的订单</a>
<a href="{:url('user/shouhuo')}"><img src="images/u4.gif"> 收货地址</a>
<a href="{:url('user/shoucang')}"><img src="images/u5.gif"> 我的收藏</a>
<a href="{:url('user/liuyan')}"><img src="images/u6.gif"> 我的留言</a>
<a href="{:url('user/biaoqian')}"><img src="images/u7.gif"> 我的标签</a>
<a href="{:url('usertwo/quehuo')}"><img src="images/u8.gif"> 缺货登记</a>
<a href="{:url('usertwo/hongbao')}"><img src="images/u9.gif"> 我的红包</a>
<a href="{:url('usertwo/tuijian')}"><img src="images/u10.gif"> 我的推荐</a>
<a href="{:url('usertwo/pinglun')}"><img src="images/u11.gif"> 我的评论</a>
<!--<a href="usertwo.php?act=group_buy">我的团购</a>-->
<a href="{:url('usertwo/genzong')}"><img src="images/u12.gif"> 跟踪包裹</a>
<a href="{:url('usertwo/money')}"><img src="images/u13.gif"> 资金管理</a>
<a href="{:url('login/back')}" style="background:none; text-align:right; margin-right:10px;"><img src="images/bnt_sign.gif"></a>
</div>      </div>
     </div>
    </div>
  </div>
  
  
  <div class="AreaR">
    <div class="box">
     <div class="box_1">
      <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
         
              
        
      
              <h5><span>我的订单</span></h5>
       <div class="blank"></div>
       <table width="100%" cellspacing="1" cellpadding="5" border="0">
          <thead style="color:#fff" bgcolor="#757575">
            <tr align="center">
              <td>订单号</td>
              <td>下单时间</td>
              <td>订单总金额</td>
              <td>订单状态</td>
              <td>操作</td>
            </tr>
          </thead>

          <tbody>
<?php foreach ($data as $key => $value): ?>
            <tr align="center">
              <td><a href="{:url('user/dingdanlist')}?order_id=<?php echo $value['order_id'] ?>" class="f6"><?=$value['order_sn']?></a></td>
              <td><?php echo date('Y-m-d H:i:s',$value['addtime']) ?></td>
              <td><?php echo $value['order_amount'] ?></td>

              <td style="position:relative">
                  <?php

                      if ($value['order_status']==0){
                          echo "未确定";
                      }else{
                          echo "已确定";
                      }

                      if ($value['pay_status']==0){
                            echo "未付款";
                      }else{
                            echo "已付款";
                      }

                      if ($value['shipping_status']==0){   
                          echo "未发货";
                      }else{
                           echo "已发货";
                      }

                  ?>
              </td>


              <!-- {if $value['order_status'] eq 0}
              <td style="position:relative">未确认</td>
              {/if}
              {if $value['order_status'] eq 1}
              <td style="position:relative">已确认</td>
              {/if} -->




              <td>
              <font class="f6"><a href="http://localhost/dayi/ecshopceshi/ecshop/user.php?act=affirm_received&amp;order_id=7" onclick="if (!confirm('你确认已经收到货物了吗？')) return false;">确认收货</a></font><br><a href="javascript:;" onclick="repurchase(7)">再次购买</a><br><a href="{:url('user/dingdanlist')}?order_id=<?php echo $value['order_id'] ?>">查看详情</a></td>
              <!-- 确认付款发货 -->
            </tr>
<?php endforeach ?>
          </tbody>







          </table>
        <div class="blank5"></div>
        <div class="page-form clearfix">

<form name="selectPageForm" action="/dayi/ecshopceshi/ecshop/user.php" method="get">
    
  <div id="pager" class="pagebar">
                          </div>
  
  </form>
<script type="Text/Javascript" language="JavaScript">
<!--

function selectPage(sel)
{
  sel.form.submit();
}

//-->
</script>
</div>              <div class="blank5"></div>
       <h5><span>合并订单</span></h5>
       <div class="blank"></div>
        <script type="text/javascript">
                  var from_order_empty = "请选择要合并的从订单";
                  var to_order_empty = "请选择要合并的主订单";
                  var order_same = "主订单和从订单相同，请重新选择";
                  var confirm_merge = "您确实要合并这两个订单吗？";
                </script>
        <form action="user.php" method="post" name="formOrder" onsubmit="return mergeOrder()">
          <table width="100%" cellspacing="1" cellpadding="5" border="0" bgcolor="#dddddd">
            <tbody><tr>
              <td width="22%" bgcolor="#ffffff" align="right">主订单:</td>
              <td width="12%" bgcolor="#ffffff" align="left"><select name="to_order">
              <option value="0" selected="selected">请选择...</option>

                  <option value="2016051124036">2016051124036</option>
                </select></td>
              <td width="19%" bgcolor="#ffffff" align="right">从订单:</td>
              <td width="11%" bgcolor="#ffffff" align="left"><select name="from_order">
              <option value="0" selected="selected">请选择...</option>

                  <option value="2016051124036">2016051124036</option>
                </select></td>
              <td width="36%" bgcolor="#ffffff">&nbsp;<input name="act" value="merge_order" type="hidden">
              <input name="Submit" class="bnt_blue_1" style="border:none;" value="合并订单" type="submit"></td>
            </tr>
            <tr>
              <td bgcolor="#ffffff">&nbsp;</td>
              <td colspan="4" bgcolor="#ffffff" align="left">订单合并是在发货前将相同状态的订单合并成一新的订单。<br>收货地址，送货方式等以主定单为准。</td>
            </tr>
          </tbody></table>
        </form>
                     
       
          
     
          
    
                                                   
      
          
      
               




      </div>
     </div>
    </div>
  </div>
  
</div>
<div class="blank"></div>
<div class="foot-body">
  <div class="bads"><img src="images/bottom.jpg"></div>
  <div class="clear10"></div>
  
     <div class="foot-help">
                      <dl>
          <dt class="xs-1">新手上路 </dt>
                      <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=9" target="_blank" title="售后流程">售后流程</a></dd>
                    <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=10" target="_blank" title="购物流程">购物流程</a></dd>
                    <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=11" target="_blank" title="订购方式">订购方式</a></dd>
           
        </dl>
         
                        <dl>
          <dt class="xs-2">手机常识 </dt>
                      <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=12" target="_blank" title="如何分辨原装电池">如何分辨原装电池</a></dd>
                    <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=13" target="_blank" title="如何分辨水货手机 ">如何分辨水货手机</a></dd>
                    <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=14" target="_blank" title="如何享受全国联保">如何享受全国联保</a></dd>
           
        </dl>
         
                        <dl>
          <dt class="xs-3">配送与支付 </dt>
                      <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=15" target="_blank" title="货到付款区域">货到付款区域</a></dd>
                    <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=16" target="_blank" title="配送支付智能查询 ">配送支付智能查询</a></dd>
                    <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=17" target="_blank" title="支付方式说明">支付方式说明</a></dd>
           
        </dl>
         
                        <dl>
          <dt class="xs-4">会员中心</dt>
                      <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=18" target="_blank" title="资金管理">资金管理</a></dd>
                    <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=19" target="_blank" title="我的收藏">我的收藏</a></dd>
                    <dd><a href="http://localhost/dayi/ecshopceshi/ecshop/article.php?id=20" target="_blank" title="我的订单">我的订单</a></dd>
           
        </dl>
         
                 
                 
         
        <div class="foot-weixin">
          <div class="weixin-txt">关注demo微信</div>
          <div class="weixin-pic">
            <img src="%E7%94%A8%E6%88%B7%E4%B8%AD%E5%BF%83_ECSHOP%E6%BC%94%E7%A4%BA%E7%AB%99%20-%20Powered%20by%20ECShop_files/weixin.jpg">
          </div>
        </div>
    </div>
     
    
   
  
  <div class="blank"></div>
  
<div class="footer_info"> © 2005-2018 ECSHOP 版权所有，并保留所有权利。       <br>
      <a href="http://xyunqi.com/products/ecshop?from=nav" target="_blank" style=" font-family:Verdana; font-size:11px;">Powered&nbsp;by&nbsp;<strong><span style="color: #3366FF">ECShop</span>&nbsp;<span style="color: #FF9966">v4.0.0</span></strong></a>&nbsp;<a href="http://www.ecshop.com/license.php?product=ecshop_b2c&amp;url=http%3A%2F%2Flocalhost%2Fdayi%2Fecshopceshi%2Fecshop%2F" target="_blank">&nbsp;&nbsp;Licensed</a><br>
            <div>ICP备案证书号:<a href="http://www.miibeian.gov.cn/" target="_blank"></a></div>
    </div>
  <div class="clear10"></div>
</div>
 

 


<script type="text/javascript">
var msg_title_empty = "留言标题为空";
var msg_content_empty = "留言内容为空";
var msg_title_limit = "留言标题不能超过200个字";
function showPop(item,order_sn){
 var slb = item.lastElementChild;
 slb.style.display = 'block';
  try
  {
    if (order_sn)
    {
      Ajax.call('user.php?act=ajax_delivery_info', "order_sn=" + order_sn , deliveryResponse, "POST", "JSON");
    }
  }
  catch (e) {alert(e);}
}
function hidePop(item){
 var slb = item.lastElementChild;
 slb.style.display = 'none';
}

function deliveryResponse(result){

  if (result.error == 0)
  {
    var div = document.getElementById('delivery_detail_' + result.order_sn);
    try
    {
      div.innerHTML = result.content;
    }
    catch (e) {alert(e);}
  }
}
function checkIpt(item,type=1){
  var val = item.value;
  var method = document.getElementById('payMethod');
  if(val == 'wxpay'){
    method.innerHTML = '微&nbsp;&nbsp;&nbsp;信';
  }else{
    method.innerHTML = '支付宝';
  }
  if(type==1){
    var post = 'order_id=&yunqi_paymethod='+val;
    Ajax.call('user.php?is_ajax=1&act=get_yunqi_online',post, yunqi_online, 'POST', 'JSON');
  }else{
    var post = 'rec_id=&pid=&yunqi_paymethod='+val;
    Ajax.call('user.php?is_ajax=1&act=get_yunqi_online_balance',post, yunqi_online, 'POST', 'JSON');
  }
  
}
function yunqi_online(result){
  var yunqi_online = document.getElementById('yunqi_online');
  if(result.status==true){
    yunqi_online.innerHTML = result.pay_online;
  }else{
    alert(result.msg);
  }
}

function checkIptList(item){
  var val = item.value;
  var method = document.getElementById('payMethod');
  if(val == 'wxpay'){
    method.innerHTML = '微&nbsp;&nbsp;&nbsp;信';
  }else{
    method.innerHTML = '支付宝';
  }
  document.getElementById('yunqi_payment').click();
}
</script>

</body></html>